﻿using System.Data.Entity;
using System.Data.Entity.Core.Objects;
using System.Data.Entity.Infrastructure;


namespace MvcTasks.Models
{
    public class TaskDBContext : DbContext , ITaskDBContext
    {
        public TaskDBContext(string connectionString) :
            base (connectionString)
        {

        }

        public TaskDBContext():base() { }
        public DbSet<RandomTask> RandomTask { get; set; }
        public DbSet<Genre> Genre { get; set; }

        public ObjectContext ThisObjectContext
        {
            get
            {
                return ((IObjectContextAdapter)this).ObjectContext;
            }
        }

        
        
    }
}